@extends('admin.layout.index')


@section('content')

        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container-fluid">


                <div class="card">
                    <div class="card-header">
                        <h1 class="card-title">Новый тег</h1>
                    </div>
                    <!-- /.card-header -->
                    <div class="card-body">
                        <div class="row">
                            <div class="col-6">
                                <form method="post" action="{{route('tags.store')}}" >
                                    @csrf
                                <input class="form-control form-control-lg" type="text"placeholder="Название категории" name="name"/>
                                <button type="submit" class="btn btn-block btn-success btn-lg mt-3"
                                        style="width: 300px">Добавить тег
                                </button>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!-- /.card-body -->
                </div>

            </div>
        </div>


@endsection
<script src="http://mysite.local/adminlte/js/jquery.js"></script>
<!-- Bootstrap 4 -->
<script src="http://mysite.local/adminlte/js/bootstrap.js"></script>
<!-- AdminLTE App -->
<script src="http://mysite.local/adminlte/js/adminlte.js"></script>

<script>
    let activeLink = window.location.href;
    const menu = document.querySelectorAll('.nav-link');
    for (let i = 0; i < menu.length; i++) {
        console.log(menu[i])
        if (menu[i].href === activeLink) {
            menu[i].classList.add('active');
        }
    }
</script>
